﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.Entity
{
    /// <summary>
    ///EPioneerDataModel 的摘要说明
    /// </summary>
    public class EPioneerDataModel
    {
        #region Model
        private string _n_id;
        private string _n_title;
        private string _n_content;
        private DateTime _n_createdate;
        private DateTime _n_modifydate;
        private string _n_ispublic;
        private string _n_level;
        /// <summary>
        /// 
        /// </summary>
        public string n_id
        {
            set { _n_id = value; }
            get { return _n_id; }
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string n_title
        {
            set { _n_title = value; }
            get { return _n_title; }
        }
        /// <summary>
        /// 正文
        /// </summary>
        public string n_content
        {
            set { _n_content = value; }
            get { return _n_content; }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime n_createdate
        {
            set { _n_createdate = value; }
            get { return _n_createdate; }
        }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime n_modifyDate
        {
            set { _n_modifydate = value; }
            get { return _n_modifydate; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string n_ISpublic
        {
            set { _n_ispublic = value; }
            get
            {
                if (_n_ispublic == "1")
                    return "True";
                else
                    return "False";
            }
        }

        public string n_Level
        {
            set { _n_level = value; }
            get
            {
                if (_n_level == "1")
                    return "True";
                else
                    return "False";
            }
        }

        #endregion Model
    }

    /// <summary>
    ///NewsList_Lst 的摘要说明
    /// </summary>
    public class NewsList_Lst
    {

        public string typeid
        {
            get;
            set;
        }

        public string typename
        {
            get;
            set;
        }

        private List<NewsList> lst;
        public List<NewsList> list
        {
            get
            {
                if (lst == null)
                {
                    lst = new List<NewsList>();
                    return lst;
                }
                else
                {
                    return lst;
                }
            }
            set
            {
                lst = value;
            }

        }
    }

    public class NewsList
    {
        /// <summary>
        /// 新闻主键
        /// </summary>
        public long? Id
        {
            get;
            set;
        }

        /// <summary>
        /// 新闻标题
        /// </summary>
        public string Title
        {
            get;
            set;
        }

        /// <summary>
        /// 新闻重要程度
        /// </summary>
        public int? Step
        {
            get;
            set;
        }

        /// <summary>
        /// 外链
        /// </summary>
        public string Url
        {
            get;
            set;
        }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime? PTime
        {
            get;
            set;
        }

        /// <summary>
        /// 来源
        /// </summary>
        public string Source
        {
            get;
            set;
        }

        /// <summary>
        /// 图片路径
        /// </summary>
        public string ImageUrl
        {
            get;
            set;
        }

        /// <summary>
        /// 发布时间
        /// </summary>
        public string SPTime
        {
            get
            {
                if (PTime == null)
                {
                    return string.Empty;
                }
                else
                {
                    return PTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
                }
            }
        }
    }

    public class NewsEntity
    {
        public NewsEntity()
        {

        }

        /// <summary>
        /// 主键
        /// </summary>
        public long? Id
        {
            get;
            set;
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            get;
            set;
        }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime? PTime
        {
            get;
            set;
        }

        public string SPTime
        {
            get
            {
                if (PTime == null)
                {
                    return string.Empty;
                }
                else
                {
                    return PTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
                }
            }
        }

        /// <summary>
        /// 关键字
        /// </summary>
        public string KeyWord
        {
            get;
            set;
        }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content
        {
            get;
            set;
        }

        /// <summary>
        /// 作者
        /// </summary>
        public string Author
        {
            get;
            set;
        }

        /// <summary>
        /// 相关股票
        /// </summary>
        public string Stcok
        {
            get;
            set;
        }

        /// <summary>
        /// 来源
        /// </summary>
        public string Source
        {
            get;
            set;
        }

        /// <summary>
        /// 摘要
        /// </summary>
        public string Summary
        {
            get;
            set;
        }

        /// <summary>
        /// 外链
        /// </summary>
        public string Url
        {
            get;
            set;
        }

        /// <summary>
        /// 新闻重要度
        /// </summary>
        public int? Step
        {
            get;
            set;
        }

        public string ImageUrl
        {
            get;
            set;
        }


        public int? Nature
        {
            get;
            set;
        }
    }
}
